High power factor primary regulated offline LED driver

ABSTRACT

A fly-back type switched current regulator includes a primary transformer winding coupled to receive a rectified DC signal derived from an AC signal. The drain of a power transistor is coupled to the primary winding, with the source of the power transistor coupled to an input of a comparison circuit and a primary transformer winding sense resistor. A control terminal of the power transistor is coupled to an output of the comparison circuit. A capacitor stores a variable reference signal for application at a first capacitor terminal to another input of the differential circuit. The variable reference signal is compared to a winding current signal generated by the sense resistor by the comparison circuit. An injection circuit applies an AC signal derived from the rectified DC signal to a second terminal of the capacitor so as to modulate the stored variable reference signal. The regulator is coupled to drive LEDs.

TECHNICAL FIELD

The present invention relates to offline constant current driver circuits such as those used to drive light emitting diodes (LEDs) in lighting applications.

BACKGROUND

LED lighting offers many potential benefits over incandescent, halogen, fluorescent and gas/arc lamps because, at least, such lighting has a longer life time, no mercury, and a fast evolutionary improvement of efficiency. Those skilled in the art note movement throughout the world to ban or limit the use of incandescent lamps. LED lighting is viewed as being a viable replacement. However, a primary challenge to the exploitation of LED lighting, especially in low power bulbs, is the size and cost of the driver circuitry which must be included in each bulb.

The most commonly used topology for an offline LED driver is the flyback topology. On the primary side, a controller and discrete power devices are necessary for power conversion. In order to have an accurate and constant LED current, driver circuits typically utilize a secondary LED current feedback. An opto-coupler is also required to transfer the sensed signal from the secondary side past the isolation barrier to the primary side controller. For low wattage bulbs, this the secondary-side and feedback components can be a problem since there is little space available in the bulb for including the necessary circuit components.

The solution to this problem is to use primary control. Those skilled in the art understand the primary control topology regulates the LED current through the primary side. One easy way to implement primary control is to provide for constant power control in flyback. A drawback of this solution for constant power control is that the LED current may not be constant when the LED forward voltage varies. Another approach is to estimate the secondary output current feedback by sensing primary peak current and duty cycle through an analog circuit or digital circuit. For example, the LED current may be calculated by sampling the peak value of the primary current and detecting the secondary diode conduction period. There are two main concerns with this solution. First, a high speed sample and hold circuit is required to measure the peak value of the primary current. Second, there is a time delay between the sample and hold to the actual switching which introduces an error in the current measurement. In yet another approach for primary control, the primary current reference is directly used for controlling output current. Advantageously, this eliminates the need for a sample and hold circuit, and a reduction in overall size and cost of the circuit is achieved by integrating a high voltage avalanche-rugged power MOSFET with the controller circuitry. Unfortunately, this solution is available for DC voltage input only.

There is a need in the art for a cost effective power factor correction function implemented by means of a highly integrated driver device so as to minimize the number of external components and provide a compact and cost effective solution.

SUMMARY

In an embodiment, a circuit comprises: a transformer including a primary winding having a first terminal configured to receive a rectified DC signal derived from an AC signal, and having a second terminal; a differential circuit having a first input, a second input and an output; a power transistor having a first conduction terminal coupled to the second terminal of the primary winding, and having a second conduction terminal coupled to the first input of the differential circuit, and further having a control terminal coupled to the output of the differential circuit; a capacitor having a first terminal coupled to the second input of the differential circuit and having a second terminal; and an injection circuit configured to apply an AC signal derived from the rectified DC signal to the second terminal of the capacitor.

In an embodiment, a circuit comprises: a first winding coupled to receive a rectified DC signal derived from an AC signal; a current sensing resistor coupled in series with the first winding and configured to generate a first signal indicative of sensed current in the first winding; a comparison circuit configured to compare the first signal to a second signal presenting a variable reference value; a capacitor configured to store the variable reference value, the capacitor having a first terminal coupled to the comparison circuit and having a second terminal; and an injection circuit configured to apply an AC signal derived from the rectified DC signal to the second terminal of the capacitor storing the variable reference value.

In an embodiment, a method comprises: sensing current in a first winding that is coupled to receive a rectified DC signal derived from an AC signal; storing a variable reference signal on a capacitor; comparing the sensed current in the first winding to the variable reference signal; controlling the current flow in the first winding in response to the comparison; and injecting an AC signal derived from the rectified DC signal to modulate the stored variable reference signal.

BRIEF DESCRIPTION OF THE DRAWINGS

For a better understanding of the embodiments, reference will now be made by way of example only to the accompanying figures in which:

FIG. 1 illustrates an LED light with primary control circuitry;

FIGS. 2A and 2B illustrate circuit diagrams for a power supply of the primary control circuitry;

FIG. 3 shows timing for switching period of the primary control circuitry of FIG. 1;

FIG. 4 illustrates an input current waveform;

FIG. 5 illustrates an LED light with primary control circuitry and power factor correction;

FIGS. 6-8 illustrate operational waveforms for the LED light of FIG. 5;

FIGS. 9A-9C illustrate operational waveforms over a range of AC Mains voltage levels;

FIG. 10 is a graph of power factor versus line voltage;

FIG. 11 is a graph of total harmonic distortion versus line voltage;

FIG. 12 illustrates an alternative configuration of the driver circuit; and

FIG. 13 illustrates an alternative configuration of the driver circuit.

DETAILED DESCRIPTION OF THE DRAWINGS

Reference is now made to FIG. 1 which illustrates an LED light 10 having input power terminals 12 and 14 and a primary control circuitry. The dotted line is representative of the extent of the light package, it being understood that the package may have any shape and configuration suitable for a desired lighting application or fixture, it further being understood that the package may take the form of a light bulb. The LED light 10 includes power terminals 12 and 14 configured for connection to a supply such as AC Mains (an example of this, in the format of a bulb type package, would comprise terminals suitable for socket connections). An internal power supply 11 for the primary control circuitry is coupled to the terminals 12 and 14 and is configured to produce a rectified DC supply input Vin (derived from the AC signal at the AC Mains) at positive supply terminal 12′ and negative supply terminal 14′ using a circuit of the type shown in FIGS. 2A and 2B which supports connection to the AC mains and includes a fuse, a bridge rectifier and filtering circuitry (using capacitors and inductors).

The primary control circuitry of the light 10 comprises a lighting circuit 13 connected to the power supply 11. The lighting circuit 13 comprises the following main components: a driver circuit 20, a transformer 22, a diode 24, a first capacitor 26, a plurality of LEDs 28, a first resistor 30, a second capacitor 32, a second resistor 34 and a third resistor 36. It will be understood that other components may also be present but are not illustrated.

The driver circuit 20 is of conventional primary control configuration known to those skilled in the art. The circuit 20 includes a drain terminal 40, a source terminal 42, a demagnetization sensing terminal 44 and a current reference terminal 46. The driver circuit 20 further includes power supply and ground terminals which are not explicitly shown. The driver circuit may further include additional terminals supporting the connection of external circuitry in connection with the provision of other features. The illustration of the driver circuit 20 and operational description provided herein supply information concerning basic operation of the circuit necessary for an understanding of the embodiments and features described.

The driver circuit 20 is preferably implemented as one or more integrated circuit devices. An example of such an implementation is the HVLEDxxx family of integrated circuit chips provided by STMicroelectronics. Other driver circuits of similar design and operation are known in the art.

The driver circuit 20 includes an n-channel power MOSFET 50 having a drain connected to the drain terminal 40 and a source connected to the source terminal 42. The gate of the MOSFET 50 is coupled to the output of a comparison circuit such as a comparator 52 configured as a current comparator circuit. A positive input terminal of the comparator 52 is connected to the source of the MOSFET 50 (that connection possibly including a feedback resistor—not explicitly illustrated, see FIG. 12). The negative input terminal of the comparator 52 (at node FB) is connected to receive a variable reference voltage Vc (wherein this reference voltage is also referred to as the constant current regulation loop reference voltage that is used as a reference for the power MOSFET's peak drain current during constant current regulation). The first resistor 30 is connected between the source of the MOSFET 50 and a reference supply node at negative supply terminal 14′. The combination of MOSFET 50, comparator 52 and first resistor 30 in this circuit configuration forms a regulator circuit whose operation is well known to those skilled in the art. The first resistor 30 functions as a current sensing resistor to sense the current flowing through the transformer 22 (and in particular the current flowing through a primary winding 22 p).

In a preferred implementation, the integrated circuit for the power MOSFET 50 and the integrated circuit for the remaining circuitry of the driver circuit 20 are provided within a common integrated circuit package (for example, using stacked or adjacently mounted integrated circuit dies). It will be understood that other packaging configurations known in the art could be used including providing a package for the power MOSFET and a separate package for the remaining circuitry of the driver circuit 20 (this providing the power MOSFET as an off-chip component). In an alternative implementation, the remaining circuitry of the driver circuit need not be implemented as an integrated solution but rather provided as an assembled circuit using various circuit components.

A current source 60 is coupled between the positive supply node of the circuit 20 and the negative input terminal of the comparator 52. The negative input terminal of the comparator 52 is further connected to the current reference terminal 46, and the second capacitor 32 is connected between the current reference terminal 46 and the reference supply node at negative supply terminal 14′. The reference voltage Vc at the negative input terminal of the comparator 52 is stored across the second capacitor 32. The current source 60 functions to source current to charge the voltage Vc across the second capacitor.

The driver circuit 20 further includes an n-channel switching MOSFET 64 having a drain coupled to the negative input terminal of the comparator 52 through a resistor 66. In this configuration a first terminal of the resistor 66 is connected to the drain of the MOSFET 64 and a second terminal of the resistor 66 is connected to the negative input terminal of the comparator 52. The source of MOSFET 64 is connected to the negative supply node of the circuit 20.

The gate of the MOSFET 64 is coupled to the output of a flip flop 68. The “set” input of the flip flop 68 is connected to the demagnetization sensing terminal 44. The “reset” input of the flip flop 68 is connected to the output of a demagnetization logic circuit 70. An input of the demagnetization logic circuit 70 is connected to the demagnetization sensing terminal 44.

In response to a logic high output from the flip flop 68, the MOSFET 64 is turned on and current is drained from the negative input terminal of the comparator 52. This causes a reduction in the variable reference voltage Vc stored across the second capacitor 32 and applied at the negative input terminal of the comparator 52. Conversely, in response to a logic low output from the flip flop 68, the MOSFET 64 is turned off and the current source 60 sources current to the negative input terminal of the comparator 52. This causes an increase in the variable reference voltage Vc stored across the second capacitor 32 and applied at the negative input terminal of the comparator 52.

The transformer 22 includes the primary winding 22 p with a first terminal connected to the reference supply node at positive supply terminal 12′ and a second terminal connected to the drain terminal 40 of the driver circuit 20. The transformer 22 further has a secondary winding 22 s with a first terminal connected to the anode of the diode 24. The plurality of LEDs 28 are connected in series with each other with the anode of the first LED in the series coupled to the cathode of the diode 24 and the cathode of the last LED in the series coupled to the second terminal of the secondary winding 22 s. The capacitor 26 is coupled in parallel with the plurality of LEDs 28 such that a first terminal of the capacitor 26 is coupled to the anode of the first LED in the series and the second terminal of the capacitor is coupled to the cathode of the last LED in the series. The transformer further has an auxiliary winding 22 a with a first terminal connected to the reference supply node at negative supply terminal 14′ and a second terminal coupled to the demagnetization sensing terminal 44 through the second resistor 34. In this configuration, a first terminal of the second resistor 34 is connected to the second terminal of the auxiliary winding 22 a and a second terminal of the resistor is connected to the demagnetization sensing terminal 44. The third resistor 36 is connected between the demagnetization sensing terminal 44 and the reference supply node at the negative supply terminal 14′. The windings 22 p, 22 s and 22 a share a common core and thus are magnetically coupled to each other.

The auxiliary winding 22 a functions as a sensing circuit operable to sense the conduction angle of the diode 24. The sensed signal generated by the auxiliary winding 22 a is applied to the demagnetization sensing terminal 44 and used by the flip flop 68 and demagnetization logic circuit 70 to generate the control signal which is applied to control the operation of the switching MOSFET 64. The resistor 66 in series with MOSFET 64 controls a current Vc/R that is sunk from the negative input terminal of the comparator 52 when MOSFET 64 is turned on, where Vc is the voltage developed across the capacitor 32 (having a capacitance Cref).

When power MOSFET 50 is turned off, the diode 24 on the secondary side of transformer 22 will conduct current. The signal ZCD at the demagnetization sensing terminal 44 will be high. The flip flop 68 responds to this high signal at the “set” input by generating a logic high output signal for application to the gate of the MOSFET 64. In response thereto, the MOSFET 64 is turned on to permit sinking of the current Vc/R and discharge of the capacitor 32. The demagnetization logic circuit 70 then resets the flip flop 68 and for the rest of the period the MOSFET 64 is turned off. The sinking current is removed and the capacitor 32 will be charged with current IREF by the current source 60. In steady state, the reference voltage on capacitor 32 will hold constant (provided a sufficiently large capacitance is available).

The average output current Iout on the secondary side can be expressed as:

$\begin{matrix} {{Iout} = {\frac{Is}{2}*\frac{Tonsec}{T}}} & {{Equation}\mspace{14mu} 1} \end{matrix}$

Where Is is the peak of secondary current, Tonsec is the secondary conduction time, T is the period of the switching cycle. If the turns ratio of the flyback transformer is n, then: Is=n*Ip  Equation 2

Where Ip is the peak of primary current. In steady-state, according to charge balance of Cref, then:

$\begin{matrix} {{{{Iref}*\left( {T - {Tonsec}} \right)} + {\left( {{Iref} - \frac{Vc}{R}} \right)*{Tonsec}}} = 0} & {{Equation}\mspace{14mu} 3} \end{matrix}$

Where Vc is the voltage of Cref. From Equation 3, then:

$\begin{matrix} {{Vc} = {R*{Iref}*\frac{T}{Tonsec}}} & {{Equation}\mspace{14mu} 4} \end{matrix}$

If Vc is used as the reference for the current comparator, the peak primary current can be expressed as:

$\begin{matrix} {{Ip} = \frac{Vc}{Rsense}} & {{Equation}\mspace{14mu} 5} \end{matrix}$

From Equations 1, 2 and 5, the following may be derived:

$\begin{matrix} {{Iout} = {\frac{n}{2}*\frac{R*{Iref}}{Rsense}}} & {{Equation}\mspace{14mu} 6} \end{matrix}$

FIG. 3 shows the timing for the switching period of the circuitry shown in FIG. 1.

Equation 6 shows that the average output current no longer depends on the input or the output voltage, and does not depend on transformer inductance values. The external parameters defining the output current are the turns ratio n of the transformer 22 and the resistance of the current sense resistor 30, both of which can be well controlled. The internal parameter R*Iref of the driver circuit 20 can be guaranteed by the design process.

The driver circuit 20 functions to regulate output current in the DC input flyback supply by calculating the peak current at which to shut off the power MOSFET 50 by continuously sensing the duty cycle. The error between a desired duty cycle and the sensed actual duty cycle appears as a current on the current reference terminal 46 (where the capacitor 32 functions to integrate the error to zero over time). Since the voltage on the current reference terminal 46, divided by two, directly sets the current at which the power MOSFET 50 turns off, the output current is regulated.

A very small capacitor is all that is needed on the current reference terminal 46 in the DC-input flyback power supply for a quick response to changing load voltage or input voltage. In the LED driver application, however, the capacitance Cref can be much larger, and this results in a regulation of the LED current more slowly, because averaging out of the error out can be done over several cycles of the input voltage. For example, a capacitance on the order of 4.7 uF is commonly used.

The circuitry functions to keep average LED current constant even if the input voltage waveform is grossly distorted. Such a distortion may occur, for example, if Vin is a rectified sinewave, as is common in use of the power factor corrected circuits. The input current waveform is shown by example in FIG. 4. The peak MOSFET shutoff current remains at the same level throughout the AC half cycle, but the duty cycle of the converter changes. It will be noted that MOSFET ON time increases at lower input voltage because it takes longer to reach the same current if the converter input voltage is lower. The resulting input current waveform is rich in harmonics (THD is in the range of 130%) making it unacceptable for commercial use.

The primary regulation performed in the circuitry of the light 10 is for DC input. Thus, the LED current reference is DC on the current reference terminal 46. This can cause a significant distortion in the AC current waveform at the line zero crossing. In order to solve this issue, a DC offset may be introduced in the current sensing signal path using a DC offset circuit coupled to the source terminal 42. However, this offset disturbs the calculation that sets the LED current. Additionally, because the line voltage is injected into the current sensing pin to shape the current waveform, the input voltage variation causes significant variation in the LED current. To address this issue, a line voltage feed forward compensation circuit may be coupled to the source terminal 42. The DC offset circuit and the line voltage feed forward compensation circuit can be quite complicated and will each add a significant number of off-chip circuit components (resistors, capacitors, etc.) to the light 10. This is undesirable, especially with respect to the limited space implementations associated with low wattage lighting packages.

Reference is now made to FIG. 5 which illustrates an LED light 10′ with primary control circuitry and power factor correction. The light 10′ of FIG. 5 is substantially the same as the LED light 10 of FIG. 1. Like reference numbers refer to like or similar parts. The description of such like or similar parts shown in FIG. 1 is incorporated herein by reference. No further description of such parts will be provided. Instead, the following description will focus on structural and functional differences.

The primary control circuit for the light 10′ of FIG. 5 differs from that used in FIG. 10 in terms of the use of off-chip current injection circuitry coupled to the current reference terminal 46. The capacitor 32 is connected between the current reference terminal 46 and an intermediate node 80. An additional capacitor 82 is connected between the intermediate node 80 and the negative supply terminal 14′. A voltage divider circuit 84 is coupled between the positive supply terminal 12′ and the negative supply terminal 14′ with the intermediate node 80 forming the tap node of the divider. Thus, a first divider resistor 86 is connected between the positive supply terminal 12′ and the intermediate node 80, and a second divider resistor 88 is connected between the intermediate node 80 and the negative supply terminal 14′. The additional capacitor 82 functions as a filter to keep switching noise from appearing at the current reference terminal 46. A diode 90 may be connected in parallel with the capacitor 32 (especially useful with dimmable light applications), with the anode of diode 90 connected to the current reference terminal 46 and the cathode of diode 90 connected to the intermediate node 80. The diode 90 functions as a voltage clamp in support of a dimming operation because in the absence of diode 90 the capacitor 32 may be charged to a high voltage which causes high current distortion at low (for example, less than 20%) conduction angles.

In an alternative embodiment, the voltage divider circuit 84 is coupled between the rectified signal output node 15 (see, FIG. 2A) and the negative supply terminal 14′ with the intermediate node 80 forming the tap node of the divider. What is important is that a connection be made to receive a rectified DC signal derived from the AC Mains signal.

As the positive supply terminal 12′ is configured to receive the rectified DC supply at the input Vin, the voltage divider circuit 84 functions in a current injection mode to supply a small AC signal to the intermediate node 80. The rectified signal at node 80 contains a DC component. Over several cycles the capacitance Cref (capacitor 32) charges in a direction to remove the DC component from the divider R1-R2, leaving only the correct controlling waveform on the current reference terminal 46. The average voltage (DC component) at the current reference terminal 46 is the same as for the DC input case. So, over several cycles, Cref removes the injected DC component, leaving only the injected AC component. The small AC signal that is injected into node 80 will cause an additional variation of the variable reference voltage Vc (i.e., the variable reference voltage Vc is modulated by the small AC signal at the FB input node of the comparator 52). The purpose of this signal injection is to shape the peak current at which the power MOSFET 50 turns off. The fraction of the rectified DC supply at the input Vin injected into the bottom of the capacitor 32 at intermediate node 80 will cause the peak current envelope of the MOSFET 50 to take on a shape like the shape of the injected rectified line voltage. For a certain injected voltage level, and within a narrow range around that voltage level, the peak current for power MOSFET 50 will just reach zero at zero crossings of the AC Mains signal, and the filtered line current will resemble the line voltage thus giving rise to power factor correction.

By rewriting Equation 4 in terms of input and output voltage, the average voltage of Vc is:

$\begin{matrix} {{Vc}_{AVE} = {R*{Iref}*\left( {1 + \frac{n*{Vout}}{{Vin}_{AVE}}} \right)}} & {{Equation}\mspace{14mu} 7} \end{matrix}$

Where Vin_(AVE) is the average value of rectified input voltage.

Furthermore, with respect to the voltage divider circuit:

$\begin{matrix} {{{VR}\; 2_{AVE}} = {{Vin}_{AVE}*\frac{R\; 2}{{R\; 1} + {R\; 2}}}} & {{Equation}\mspace{14mu} 8} \end{matrix}$

Where R1 and R2 are the resistances of the first divider resistor 86 and second divider resistor 88, respectively.

If R1 and R2 are selected at nominal input such that Equation 8 equals Equation 7 (i.e., setting the average value of Vi*R1/(R1+R2) equal to the set point of the current reference terminal 46), then the rectified AC signal will appear at Cref (capacitor 32) because the DC component generated from the internal current source is exactly same as that injected from the line voltage. At this condition (referred to as nominal line), the line waveform appears at the current reference terminal 46 and the input current for the light 10′ substantially matches the sinewave of the AC Mains as shown in FIG. 6. The current waveform at nominal line condition has the lowest harmonic content due to the input current distortion inherent in PFC flyback converter operation. The change in the input current waveform is valid at the line voltage selected for the nominal line condition, and FIG. 6 further illustrates operation above and below the nominal line condition.

At the certain line voltage associated with the nominal line condition, the peak current of the power MOSFET 50 will track the line voltage. This is illustrated in FIGS. 7 and 8. Above and below this voltage, the current waveform for the power MOSFET 50 will be slightly distorted, but the regulator functionality of the driver circuit 20 will regulate the average output current by introducing a small DC offset. The input current distortion is accordingly small within an offset range of the line voltage.

In this way, both current regulation and power factor correction are achieved.

FIGS. 9A-9C illustrate operational waveforms over a range of AC Mains voltage levels. Specifically, FIG. 9A illustrates operation at an AC Mains voltage of 90V, FIG. 9B illustrates operation at an AC Mains voltage of 110V (i.e., the nominal line condition), and FIG. 9C illustrates operation at an AC Mains voltage of 130V. It will be noted that the line current tracks the input voltage and compares favorably in shape to a sinusoid, especially when considering the nominal line condition shown in FIG. 9B (see, also FIG. 6).

Reference is now made to FIG. 10 which shows a graph of power factor versus line voltage for the light 10′. It will be noted that power factor is near 100% over a line voltage range extending from 90V to 130V.

Reference is now made to FIG. 11 which shows a graph of total harmonic distortion versus line voltage for the light 10′. It will be noted that the total harmonic distortion is minimized at about the nominal line voltage (in this case at about 110V). It is preferred to keep total harmonic distortion below 20% and thus FIG. 11 shows an acceptable operation over the entire line voltage range extending from 90V to 130V.

Reference is now made to FIG. 12 which illustrates an alternative configuration of the driver circuit 20′. Again, like reference numbers refer to like or similar parts and no further description will be provided for such parts. The circuitry in FIG. 12 differs from that of FIG. 5 in the use of a PWM logic circuit 100 to drive the gate of the power MOSFET 50. Such PWM control circuits are well known to those skilled in the art (and may be used in the circuit of FIGS. 1 and 5). An input of the PWM logic circuit 100 is coupled to the output of the comparator 52 configured as a current comparator circuit. A positive input terminal of the comparator 52 is coupled to the source of the MOSFET 50 through a feedback resistor 102 (which may be used as well in the circuit of FIGS. 1 and 5). The negative input terminal of the comparator 52 is connected to receive a reference voltage generated using the feedback circuitry with power factor correction as illustrated in FIG. 5. The positive input terminal of the comparator 52 is further configured to receive a feed forward current supplied by a variable current source 104. A feed forward logic circuit 106 has an input connected to the demagnetization sensing terminal 44. An output of the feed forward logic circuit 106 controls the selection of the current output from the variable current source 104.

From Equation 6 it is noted that in an ideal case the output current is not affected by other parameters, such as input voltage. In actuality, non-idealities in the circuit will affect the accuracy of the output current regulation. The propagation delay from the current comparator will produce an actual output current that is larger than calculated value. Also, this is input voltage dependent. The higher input voltage, the greater the error. The circuitry of FIG. 12 provides input voltage feed forward compensation designed to make the output current independent of input voltage.

If the time for the propagation delay is Td, the current overshoot will be: ΔIp=Vin*Td/Lp  Equation 9

Where Lp is the primary inductance.

During MOSFET 50 “ON” time, the auxiliary winding 22 a will sense the input voltage. The feed forward logic circuit 106 receives the sensed input voltage through the demagnetization sensing terminal 44 and causes the variable current source 104 to generate the feed forward current for application to the positive input terminal of the comparator 52 in order to compensate for the current overshoot caused by the propagation delay. The feed forward current is proportional to input voltage:

$\begin{matrix} {I_{FF} = \frac{Vin}{N_{P - {AUX}}*R_{ZCD}}} & {{Equation}\mspace{14mu} 10} \end{matrix}$

Where N_(P-AUX) is the turns ratio of the auxiliary winding 22 a.

To compensate the offset current caused by delay, then:

$\begin{matrix} {{\frac{{Vin}*{Td}}{Lp}*{Rsense}} = \frac{{Vin}*{Rff}}{N_{P - {AUX}}*R_{ZCD}}} & {{Equation}\mspace{14mu} 11} \end{matrix}$

Where Rff is an internal compensation resistor. From Equation 11, the resistance Rzcd (resistor 34) can be selected:

$\begin{matrix} {R_{ZCD} = \frac{{Rff}*{Lp}}{N_{P - {AUX}}*{Rsense}*{Td}}} & {{Equation}\mspace{14mu} 12} \end{matrix}$

It is understood by those skilled in the art that no transformer 22 is perfect. In Equation 6, the turns ratio n for the transformer is considered. The actual effective turns ratio neff, however, will be lower than the value n because of the known non-ideal coupling effect. The leakage inductance will delay the power transferring and induces extra loss in the process.

The primary inductance Lp has two parts, the magnetizing inductance Lm and the leakage inductance Llk. If the coupling co-efficiency is k, then: Lm=k*Lp  Equation 13 and Llk=(1−k)*Lp  Equation 14

When the power MOSFET 50 is turned on, the primary inductor 22 p will be charged to Ip. When the power MOSFET 50 is turned off, the primary/secondary energy transfer will not take place immediately. There exists a delay time (Δt) determined by the leakage inductance and clamping voltage, where:

$\begin{matrix} {{{\Delta\; t} = {\frac{Llk}{{Vs} - {n*{Vout}}}*{Ip}}}{and}} & {{Equation}\mspace{14mu} 15} \\ {\frac{Is}{n} = {\left( {\frac{{Vs} - {n*{Vout}}}{Llk} - \frac{n*{Vout}}{Lm}} \right)*\Delta\; t}} & {{Equation}\mspace{14mu} 16} \end{matrix}$

Where Vs is the clamping voltage on the primary side. The effective turns ratio n_(eff) is thus:

$\begin{matrix} {n_{eff} = {n*\left( {1 - {\frac{Llk}{Lm}*\frac{n*{Vou}}{{Vs} - {n*{Vout}}}}} \right)}} & {{Equation}\mspace{14mu} 17} \end{matrix}$

After the secondary current reaches zero, the auxiliary winding 22 a cannot immediately detect that current. It takes about one quarter of the resonant period for the voltage to ring down to zero so that a detection can be made. If the demagnetizing time is t_(demg), then the output current is:

$\begin{matrix} {{Iout} = {\frac{n}{2}*\frac{R*{Iref}}{Rsense}\left( {1 - \frac{t_{demg}}{Tonsec}} \right)}} & {{Equation}\mspace{14mu} 18} \end{matrix}$

This parasitic effect induces a dependence of the output current versus the output voltage because of the variation of Tonsec. Considering all the parasitic effects of the non-ideal circuit, the reduction of output current from theoretical value can reach up to 15%. However, this will be fairly consistent and the off-chip resistor values can be adjusted to obtain a desired output current.

Reference is now made to FIG. 13 which illustrates an alternative configuration of the driver circuit 20″. In this embodiment, the driver circuit comprises an offline LED driver circuit of the HVLED815 family of circuits supplied by STMicroelectronics. It will accordingly be understood that injection circuit configuration shown in FIG. 5 is applicable in any of a number of driver circuit 20 configurations to inject an AC signal derived from a rectified DC (which itself was derived from AC power supply signal) into the reference comparison terminal of the driver circuit (i.e., the current reference terminal 46). The voltage at that terminal concerns, for example, the constant current regulation loop reference voltage. The voltage is used as a reference for the power MOSFET's peak drain current during constant current regulation. Injecting the AC signal to modulate the constant current regulation loop reference voltage provides improved performance as described above.

Although the illustrated load comprises LEDs in a lighting application, it will be understood that the circuits and methods described herein are equally applicable to other loads. The reference to an LED load is merely exemplary of a preferred implementation.

The foregoing description has provided by way of exemplary and non-limiting examples a full and informative description of the exemplary embodiment of this invention. However, various modifications and adaptations may become apparent to those skilled in the relevant arts in view of the foregoing description, when read in conjunction with the accompanying drawings and the appended claims. However, all such and similar modifications of the teachings of this invention will still fall within the scope of this invention as defined in the appended claims. 

What is claimed is:
 1. A circuit, comprising: a transformer including a primary winding having a first terminal configured to receive a rectified DC signal derived from an AC signal, and having a second terminal; a comparison circuit having a first input, a second input and an output; a power transistor having a first conduction terminal coupled to the second terminal of the primary winding, and having a second conduction terminal coupled to the first input of the comparison circuit, and further having a control terminal coupled to the output of the comparison circuit; a first capacitor having a first terminal coupled to the second input of the comparison circuit and having a second terminal; a second capacitor having a first terminal coupled to the second terminal of the first capacitor and having a second terminal coupled to a reference supply node; and an injection circuit configured to apply an AC signal derived from the rectified DC signal directly to the second terminal of the first capacitor.
 2. The circuit of claim 1, further comprising a PWM logic circuit coupled between the output of the comparison circuit and the control terminal of the power transistor.
 3. The circuit of claim 1, further comprising: a current sourcing circuit coupled to the second input of the comparison circuit; and a current sinking circuit coupled to the second input of the comparison circuit.
 4. The circuit of claim 3, further comprising a control circuit configured to selectively actuate the current sinking circuit.
 5. The circuit of claim 4, wherein the transformer further comprises a secondary winding and wherein the circuit further comprises a sensing circuit configured to sense current delivered by the secondary winding to a load.
 6. The circuit of claim 5, wherein the sensing circuit comprises an auxiliary winding on the transformer.
 7. The circuit of claim 5, wherein the control circuit responds to sensing circuit sensing of current delivery by the secondary winding to the load by actuating the current sinking circuit.
 8. The circuit of claim 7, wherein the control circuit responds to sensing circuit failure to sense current delivery by the secondary winding to the load by deactuating the current sinking circuit.
 9. The circuit of claim 1, further comprising a feedback resistor coupled between the second conduction terminal of the power transistor and the first input of the comparison circuit.
 10. The circuit of claim 1, wherein the comparison circuit comprises a comparator.
 11. A circuit, comprising: a first winding coupled to receive a rectified DC signal derived from an AC signal; a current sensing resistor coupled in series with the first winding and configured to generate a first signal indicative of sensed current in the first winding; a comparison circuit configured to compare the first signal to a second signal presenting a variable reference value; a first capacitor configured to store the variable reference value, the first capacitor having a first terminal coupled to the comparison circuit and having a second terminal; a second capacitor having a first terminal coupled to the second terminal of the first capacitor and having a second terminal coupled to a reference supply node; and an injection circuit configured to apply an AC signal derived from the rectified DC signal directly to the second terminal of the first capacitor storing the variable reference value.
 12. The circuit of claim 11, further comprising a switching circuit coupled in series with the first winding and current sensing resistor, wherein activation of the switching circuit is controlled in response to a signal output from the comparison circuit.
 13. The circuit of claim 11, further comprising: a current sourcing circuit coupled to the first terminal of the first capacitor; and a current sinking circuit coupled to the first terminal of the first capacitor.
 14. The circuit of claim 13, further comprising a control circuit configured to selectively actuate the current sinking circuit.
 15. The circuit of claim 14, further comprising a second winding magnetically coupled to the first winding and wherein the circuit further comprises a sensing circuit configured to sense current delivered by the second winding to a load.
 16. The circuit of claim 15, wherein the sensing circuit comprises a third winding magnetically coupled to the first winding.
 17. The circuit of claim 15, wherein the control circuit responds to sensing circuit sensing of current delivery by the second winding to the load by actuating the current sinking circuit.
 18. A circuit, comprising: a first winding coupled to receive a rectified DC signal derived from an AC signal; a current sensing resistor coupled in series with the first winding and configured to generate a first signal indicative of sensed current in the first winding; a comparison circuit having a first input configured to receive the first signal and having a second input; a first capacitor having a first terminal coupled to second input and a second terminal coupled to a first node; a second capacitor having a first terminal coupled to the first node and a second terminal coupled to a reference supply node; a resistive divider coupled between the rectified DC signal and the reference supply node, the resistive divider having a second node configured to generate an AC signal derived from the rectified DC signal that is applied to the first node.
 19. The circuit of claim 18, further comprising a switching circuit coupled in series with the first winding and current sensing resistor, wherein activation of the switching circuit is controlled in response to a signal output from the comparison circuit.
 20. The circuit of claim 18, further comprising: a current sourcing circuit coupled to the first terminal of the capacitor; and a current sinking circuit coupled to the first terminal of the capacitor.
 21. The circuit of claim 20, further comprising a control circuit configured to selectively actuate the current sinking circuit.
 22. The circuit of claim 21, further comprising a second winding magnetically coupled to the first winding and wherein the circuit further comprises a sensing circuit configured to sense current delivered by the second winding to a load.
 23. The circuit of claim 22, wherein the control circuit responds to sensing circuit sensing of current delivery by the second winding to the load by actuating the current sinking circuit. 